/*
 * Lec09ref.cpp
 *
 * Example of references used with primitive data types
 *
 *  Created on: Feb 18, 2014
 *      Author: Anthony Varghese
 */

#include <iostream>

using namespace std;

int main(void){
	cout << "Lecture 9" << endl;
	int a = 5;
	int& b = a;
	cout << " a is " << a << endl;
	cout << " b is " << b << endl;
	b = b + 7;
	cout << " a is now " << a << endl;
	cout << " b is now " << b << endl;
}


